#include "ticker.h"
#include <QDebug>
#include <QTimerEvent>

Ticker::Ticker(int interval)
{
    startTimer(interval);
}

void Ticker::timerEvent(QTimerEvent *te)
{
    static int counter =0;
    qDebug() << counter++;

    if (counter >=10)
        killTimer(te->timerId());
}
